package com.tt.fashionWebSite.domain;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

@SuppressWarnings("serial")
@Entity
@Table(name = "cap_bac")
@NamedQueries({
      @NamedQuery(name = "getAllInfo", query = "SELECT c FROM CapBac c"),
//        @NamedQuery(name = "getAllInfo", query = "SELECT c FROM CapBac c where  c.maCB = :patientId")
})
public class CapBac implements Serializable {
    public static final String GET_INFO_REGISTER = "getAllInfo";

   @Id
   @Column(name = "MA_CB")
   private String maCB;

   @Column(name = "TEN_CB")
   private String tenCB;

   public String getMaCB() {
      return maCB;
   }

   public void setMaCB(String maCB) {
      this.maCB = maCB;
   }

   public String getTenCB() {
      return tenCB;
   }

   public void setTenCB(String tenCB) {
      this.tenCB = tenCB;
   }
}
